Improve make_page_readonly and make_page_writable:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 18 Nov 2005 16:42:45 +0000 (17:42 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 18 Nov 2005 16:42:45 +0000 (17:42 +0100)
commitcde43db53a333890c4bad387876df15f45faeeba
tree4e73ca5d40f2f85c154dd8fbf0c38862cd23208c
parentf2d946d367d59afddf5aa95ac675ff502152f3e6
Improve make_page_readonly and make_page_writable:
 1. Use update_va_mapping where possible (much faster)
 2. If that fails, fall back to explicit pte update rather
    than using writable pagetables (very slow for singleton
    updates)

Also many x86/64 cleanups and fix to handle vmalloc space
correctly.

Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/arch/xen/i386/mm/pgtable.c
linux-2.6-xen-sparse/arch/xen/x86_64/mm/init.c